from mtp.lib.base import *

import logging
log = logging.getLogger(__name__)

class ConfigController(BaseController):
    @needs_perm('config', 'show')
    def index(self):
        items = config['mtp.config_links'].items()
        items.sort(cmp=lambda a, b: cmp(a[0], b[0]))
        c.items = items
        return render('/config/index.html')
